package com.file.upload.service;

import com.file.upload.dto.ChunkUploadDTO;
import com.file.upload.dto.FileUploadDTO;
import com.file.upload.dto.FileUploadResultDTO;

/**
 * @Description
 * @Author lhj
 * @Date 2025/4/23 21:26
 */
public interface FileUploadService {
    /**
     * 初始化文件上传
     */
    FileUploadResultDTO initFileUpload(FileUploadDTO fileUploadDTO);

    /**
     * 上传文件分片
     */
    boolean uploadChunk(ChunkUploadDTO chunkUploadDTO);

    /**
     * 合并文件分片
     */
    boolean mergeChunks(String fileId);

    /**
     * 检查文件上传状态
     */
    FileUploadResultDTO checkFileUploadStatus(String fileId);
}
